package com.miku.sys.services;

import java.util.List;

import com.miku.db.sys.entity.SysUser;
import com.miku.sys.security.utils.SessionDAO;
import com.miku.utils.PairResult;

public interface SystemServiceI{
	public SessionDAO getSessionDao();
	public SysUser findByLoginName(String name);
	public void updateUserLoginInfo(SysUser user);
	public void updatePassword(SysUser user, String newPassword);
	public SysUser findByLoginId(int userID);
	public List<SysUser> listAllUser();				//返回现有的全部用户列表
	public PairResult<List<SysUser>> getListUser(int pageShowRows,int pageIndex, int showPages);
	public void modifyAllowLogin(String state ,int userID);	//修改用户登入权限
	public PairResult<List<SysUser>> listNoLoginUser(int pageShowRows ,int pageIndex, int showPages, String allowLogin);
	public PairResult<List<SysUser>> listOnlineUser(int pageShowRows ,int pageIndex, int showPages, List<Integer> ids);
	public void updateNickname(String nickname,int id);
}
